﻿using System.Threading.Tasks;
using WebApiClientCore;
using WebApiClientCore.Attributes;
using Yyd.ExternalService.CustomerMarking.Attributes;

namespace Yyd.ExternalService.CustomerMarking
{
    /// <summary>
    /// 客户营销
    /// </summary>

    public interface ICustomerExternalService : IHttpApi
    {
        /// <summary>
        /// 通过手机号 获取客户来源信息等相关信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpGet("api/customers/mobile")]
        [CrmJsonReturn(IgnoreExceptionMsgs = new[] {"客户手机号不存在"})]
        Task<CustomerSourceInfo> FindCustomerSourceByMobile([PathQuery] FindCustomerByMobileInput input);
    }
}
